-- GENERATED SPELL FOR [Ambassador Infernus] --


function spell0_2745(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11970,pUnit)
pUnit:RegisterEvent('Sorts_2745', 2000, 1)
end

function spell1_2745(pUnit, Event) --@Fire Shield IV,n/a--
pUnit:FullCastSpellOnTarget(2602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2745', 16000, 1)
end

function spell2_2745(pUnit, Event) --@Searing Flames,n/a--
pUnit:FullCastSpellOnTarget(9552,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2745', 11000, 1)
end

function Sorts_2745(pUnit, Event)
local choix_sorts_2745 = math.random(0, 2)
if choix_sorts_2745 == 0 then
pUnit:RegisterEvent('spell0_2745', 1, 1)
end
if choix_sorts_2745 == 1 then
pUnit:RegisterEvent('spell1_2745', 1, 1)
end
if choix_sorts_2745 == 2 then
pUnit:RegisterEvent('spell2_2745', 1, 1)
end
end

function mob2745_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2745', math.random(1500, 3000), 1)
end

function mob2745_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2745_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2745_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2745, 1, 'mob2745_Action')
RegisterUnitEvent(2745, 2, 'mob2745_Leave')
RegisterUnitEvent(2745, 3, 'mob2745_Kill')
RegisterUnitEvent(2745, 4, 'mob2745_Die')
